
public class TestOCP {
    public static void main(String[] args) {
        System.out.println("蔬菜原价:" + new Cabbage().getSalePrice());
        System.out.println("蔬菜打折价" + new DiscountCabbage().getSalePrice());
    }
}